package com.ruoyi.web.controller.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;

/**
 * 课程单元小节管理
 * 
 * @author Jason
 */
@RestController
@RequestMapping("/api/course/unit/section")
public class ApiCourseUnitSectionController extends BaseController
{
    /**
     * 获取小节单词数量
     */
    @GetMapping("/wordCount")
    public AjaxResult getWordCount()
    {
        // 模拟返回数据
        return AjaxResult.success()
                .put("sectionWordCount", 7);
    }
}